/****************************************************************************
** Meta object code from reading C++ file 'qhkp.h'
**
** Created: Wed Dec 26 20:05:05 2007
**      by: The Qt Meta Object Compiler version 59 (Qt 4.3.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../qhkp.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qhkp.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 59
#error "This file was generated using the moc from 4.3.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

static const uint qt_meta_data_QHkp[] = {

 // content:
       1,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   10, // methods
       0,    0, // properties
       0,    0, // enums/sets

 // signals: signature, parameters, type, tag, flags
       6,    5,    5,    5, 0x05,

 // slots: signature, parameters, type, tag, flags
      42,   35,   31,    5, 0x0a,
      72,   35,   31,    5, 0x0a,
     120,  107,  102,    5, 0x0a,
     139,    5,    5,    5, 0x0a,

       0        // eod
};

static const char qt_meta_stringdata_QHkp[] = {
    "QHkp\0\0dataReady(unsigned char)\0int\0"
    "p,data\0writeData(port,unsigned char)\0"
    "readData(port,unsigned char*)\0bool\0"
    "p,inPort,pin\0pin(port,bool,int)\0"
    "initPorts()\0"
};

const QMetaObject QHkp::staticMetaObject = {
    { &QFile::staticMetaObject, qt_meta_stringdata_QHkp,
      qt_meta_data_QHkp, 0 }
};

const QMetaObject *QHkp::metaObject() const
{
    return &staticMetaObject;
}

void *QHkp::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_QHkp))
	return static_cast<void*>(const_cast< QHkp*>(this));
    return QFile::qt_metacast(_clname);
}

int QHkp::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFile::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: dataReady((*reinterpret_cast< unsigned char(*)>(_a[1]))); break;
        case 1: { int _r = writeData((*reinterpret_cast< port(*)>(_a[1])),(*reinterpret_cast< unsigned char(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 2: { int _r = readData((*reinterpret_cast< port(*)>(_a[1])),(*reinterpret_cast< unsigned char*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = _r; }  break;
        case 3: { bool _r = pin((*reinterpret_cast< port(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 4: initPorts(); break;
        }
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void QHkp::dataReady(unsigned char _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
